﻿using DearlerPlatform.Domain;
using DearlerPlatform.Domain.Entity;
using DearlerPlatform.Service.CustomerApp.Dto;
using DearlerPlatform.Service.CustomerApp.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DearlerPlatform.Service.CustomerApp
{
    public interface ICustomerService: IocTag
    {
        /// <summary>
        /// 用户登录验证
        /// </summary>
        /// <param name="dto">用户dto</param>
        /// <returns>验证结果</returns>
        Task<bool> CheckPassword(CustomerLoginDto dto);
        /// <summary>
        /// 获取一个用户信息
        /// </summary>
        /// <param name="customerNo">用户名</param>
        /// <returns>用户信息</returns>
        Task<CustomerLoginVM> GetCustomerByNoAsync(string customerNo);

        /// <summary>
        /// 根据ID获取用户信息
        /// </summary>
        /// <param name="id">用户ID</param>
        /// <returns>用户VM</returns>
        CustomerLoginVM GetCustomerById(long id);
    }
}
